﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ThucDonCaNhan.aspx.cs" Inherits="ThucDonCaNhan" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="place1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="place2" Runat="Server">
    
    <table style="width: 100%; height: 111%">
        <tr>
            <td style="height: 17px" colspan="3">
    Danh muc thuc don&nbsp;
    <asp:DropDownList ID="DropDownList1" runat="server" Width="160px">
    </asp:DropDownList></td>
        </tr>
        <tr>
            <td colspan="3" style="height: 225px">
    <asp:GridView ID="GridView2" runat="server" Height="150px" Width="586px" 
    AutoGenerateColumns="False" OnRowCommand="GridView2_RowCommand"><Columns>
<asp:TemplateField HeaderText="T&#234;n">
    <ItemTemplate>
        <asp:Label ID="lblName" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
    </ItemTemplate> 
</asp:TemplateField> 
<asp:TemplateField HeaderText="Unit">
    <ItemTemplate>
        <asp:Label ID="lblName1" runat="server" Text='<%# Bind("Unit") %>'></asp:Label>
    </ItemTemplate> 
</asp:TemplateField> 
<asp:TemplateField HeaderText="Cost">
    <ItemTemplate>
        <asp:Label ID="lblName2" runat="server" Text='<%# Bind("Cost") %>'></asp:Label>
    </ItemTemplate> 
</asp:TemplateField>
<asp:TemplateField HeaderText="Image">
    <ItemTemplate>
        <asp:Label ID="lblName3" runat="server" Text='<%# Bind("Image") %>'></asp:Label>
    </ItemTemplate> 
</asp:TemplateField> 
<asp:TemplateField HeaderText="X&#243;a">    
    <HeaderStyle HorizontalAlign="Left" Width="40px" />
    <ItemTemplate>    
        <asp:LinkButton ID="lnkDelete" CommandName='Delete' OnClientClick="return confirm('Bạn có chắc muốn xóa món này không ?')"
            CommandArgument='<%#Eval("Name")%>' runat="server">Xoá</asp:LinkButton>
    </ItemTemplate>
</asp:TemplateField> 
</Columns>
</asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="height: 83px">
    <asp:Button ID="Button1" runat="server" Text="Cập Nhật" OnClick="Button1_Click" />&nbsp;
    <asp:Button ID="Button3" runat="server" Text="Back" OnClick="Button3_Click" /></td>
        </tr>
    </table>
    <br />
    &nbsp;
    <br />
    <br />
    <br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="place3" Runat="Server">
</asp:Content>

